package com.xjj.user.service;

import com.xjj.user.pojo.User;
import org.springframework.stereotype.Service;

/**
 * @author zhanghejie
 * @date 2020/7/24 15:47
 */
@Service
public class UserService {

    //@SentinelResource(value = "test")
    public String test(String name) {
        return "Hello Nacos Discovery " + name;
    }

    public String reduceIntegral(Integer num) {
        User user = User.builder().username("11").nickname("22").build();
        System.out.println("===用户减积分成功===-"+num);
        return "ok";
    }

}
